#!bash

docker run -it --rm --privileged -v="$PWD:/home/temp" \
    -e NVIDIA_VISIBLE_DEVICES=${NVIDIA_VISIBLE_DEVICES:-all} \
    -e NVIDIA_DRIVER_CAPABILITIES=${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics \
    -v /tmp/.X11-unix:/tmp/.X11-unix:ro \
    -e DISPLAY=$DISPLAY \
    --gpus=all \
    --network host \
   	xiejianshan/px4-gazebo-1804:4.0 bash /home/px4_ws/multi_gazebo_run "$@"
